package com.ea.admin.pojo.param.account;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddAdminParam {
    @ApiModelProperty(value = "登录账号（用户名）", required = true)
    @NotBlank(message = "登录账号不能为空")
    private String username;

    //@ApiModelProperty("验证码")
    //@NotNull
    //private Integer code;

    @ApiModelProperty(value = "真实姓名", required = true)
    @NotBlank(message = "真实姓名不能为空")
    @Size(max = 20, message = "真实姓名不能超过20个字符")
    private String name;

    @ApiModelProperty(value = "手机号码", required = true)
    @NotBlank(message = "手机号码不能为空")
    @Size(max = 11, message = "手机号码不能超过11个字符")
    private String phoneNumber;

    @ApiModelProperty(value = "密码（用RSA公钥加密后，转为Base64表示）", required = true)
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "确认密码（用RSA公钥加密后，转为Base64表示）", required = true)
    @NotBlank(message = "确认密码不能为空")
    private String rePassword;

    @ApiModelProperty(value = "管理员角色id", required = true)
    @NotBlank(message = "管理员角色id不能为空")
    private String adminRoleId;
}
